package cn.webdai.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 戴金华
 * @date 2019-12-04 16:19
 */
@Configuration
public class RabbitMqConfig {

    @Bean
    public Queue helloQueue(){
        return new Queue("hello");
    }

    @Bean
    public Queue objectQueue(){
        return new Queue("object");
    }
}
